<?php use_helper('Javascript') ?>
<?php $sf_guard_user="@user" ?>
  <div class="<?php echo $class ?><?php $form['loc_id']->hasError() and print ' errors' ?>">
    <?php echo $form['loc_id']->renderError() ?>
    <div>
      <?php echo $form['loc_id']->renderLabel() ?>

      <div class="content"><?php echo $form['loc_id']->render($attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes) ?></div>

      <?php //if ($help): ?>
        <!--div class="help"><?php //echo __($help, array(), 'messages') ?></div-->
      <?php //elseif ($help = $form['cli_localidad']->renderHelp()): ?>
        <div class="help"><?php //echo $help ?></div>
      <?php //endif; ?>
    </div>
  </div>

<?php /*echo observe_field(
        'sf_guard_user_pcia_id',
        array(
            'update'   => 'sf_guard_user_loc_id',
            'url'      => $sf_guard_user.'_localidadesPorProvincia',
            'method'   => 'get',
            'with'     => "'pcia_id=' + \$F('sf_guard_user_pcia_id') + '&loc_id=' + \$F('sf_guard_user_loc_id')",
)) ?>

<?php echo javascript_tag(
  remote_function(array(
    'update'  => 'sf_guard_user_loc_id',
    'url'     => $sf_guard_user.'',
    'method'   => 'get',
    'with'     => "'pcia_id=' + \$F('sf_guard_user_pcia_id') + '&loc_id=' + \$F('sf_guard_user_loc_id')",
  ))
)*/ ?>